package local.blueheart.data.springdatademo.domain.config;

import local.blueheart.data.springdatademo.domain.system.AbstractDomainClass;
import lombok.Data;
import lombok.ToString;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.OneToMany;
import java.util.List;

@Entity
@Data
@ToString
public class ArchiveSourceDO extends AbstractDomainClass {

    private String type;

    private String project;

    private String configVersion;


    @OneToMany(targetEntity = ApplicationDO.class,cascade = {CascadeType.ALL},mappedBy = "archiveSourceDO")
    private List<ApplicationDO> applicationDOList;


}
